<template>
    <div class="container" @click="onClick">
        <div v-for="video in data">
            <VideoItem  :data="video" :old_data="data" ></VideoItem>
        </div>
    </div>
</template>

<script setup>
import VideoItem from '@c/preview-item/video.vue'
import { onMounted, ref } from 'vue-demi'
import { onBeforeRouteUpdate } from 'vue-router';
import store from '../../../store'
// let data = store.state.router.data
// const props = defineProps(['data'])
// const props = defineProps(['data'])
let data = ref()
onMounted(async () =>{
    console.log("有没有进入")
    // console.log(props.data)
    // data.value = props.data != undefined?props.data: await store.state.router_data.get()
    data.value = await store.state.router_data.get()
})
</script>

<style lang="scss" scoped>

.container{
    //background: #cdc1c1;
    flex-wrap: wrap;
    display: flex;
}

</style>